<table cellpadding="2" cellspacing="1" width="98%">
	<input type="hidden" name="setting[type]" value="mediumtext">
    <tr> 
        <td width="120">文本域宽度</td>
        <td>
            <div class="layui-input-inline" style="width: 80px;">
                <input name="setting[width]" value="<?php echo isset($setting['width']) ? $setting['width'] : '100'; ?>" size="10" autocomplete="off" class="layui-input" type="text">
            </div>
            <div class="layui-input-inline" style="width: 80px;">
            %
            </div>
        </td>
    </tr>
    <tr> 
        <td>文本域高度</td>
        <td>
            <div class="layui-input-inline" style="width: 80px;">
                <input name="setting[height]" value="<?php echo isset($setting['height']) ? $setting['height'] : '46'; ?>" size="10" autocomplete="off" class="layui-input" type="text">
            </div>
            <div class="layui-input-inline" style="width: 80px;">
            px
            </div>
        </td>
    </tr>
    <tr> 
        <td>默认值</td>
        <td>
            <div class="layui-input-inline" style="width: 250px;">
                <textarea name="setting[defaultvalue]" rows="2" cols="20" id="defaultvalue" style="height:60px;width:250px;" class="layui-textarea"><?php echo htmlspecialchars($setting['defaultvalue']); ?></textarea>
            </div>
        </td>
    </tr>
    <tr>
        <td>字段类型</td>
        <td>
            <div class="layui-input-inline" style="width: 250px;">
                <select name="setting[fieldtype]">
                    <option value="text" <?php if ($setting['fieldtype'] == 'text') echo 'selected'; ?>>小型字符型(TEXT)</option>
                    <option value="mediumtext" <?php if ($setting['fieldtype'] == 'mediumtext') echo 'selected'; ?>>中型字符型(MEDIUMTEXT)</option>
                    <option value="longtext" <?php if ($setting['fieldtype'] == 'longtext') echo 'selected'; ?>>大型字符型(LONGTEXT)</option>
                </select>
            </div>
        </td>
    </tr>
</table>